Skip to main content
POST
/
v2
/
geoprovenance
/
countries
[DEPRECATED] Get component-level Geo Provenance by contributor location
curl --request POST \
  --url https://api.example.com/v2/geoprovenance/countries \
  --header 'Content-Type: application/json' \
  --data '
{
  "purls": [
    {
      "purl": "<string>",
      "requirement": "<string>"
    }
  ]
}
'
{
  "purls": [
    {
      "purl": "<string>",
      "declared_locations": [
        {
          "type": "<string>",
          "location": "<string>"
        }
      ],
      "curated_locations": [
        {
          "country": "<string>",
          "count": 123
        }
      ],
      "info_message": "<string>",
      "info_code": "<string>"
    }
  ],
  "status": {
    "status": "UNSPECIFIED",
    "message": "<string>",
    "db": {
      "schema_version": "<string>",
      "created_at": "<string>"
    },
    "server": {
      "version": "<string>"
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.scanoss.com/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json

Purl request data (JSON payload) WARNING: PurlRequest is deprecated, use ComponentsRequest instead.

Purl request data (JSON payload) WARNING: PurlRequest is deprecated, use ComponentsRequest instead.

purls
TODO: Refactor this API - Remove nested Purls message and replace with top-level Purl message type. - Update field definition below to: repeated Purl purls = 1; · object[]

Response

A successful response.

[DEPRECATED] Component level Provenance Response data (JSON payload) This message is deprecated. Use ComponentContributorResponse instead for better component handling. Contains geo-provenance information for components based on contributor declared locations.

purls
Information about a given Package URL (PURL) · object[]
status
object

Detailed response details.